import request from '@/utils/request';

//部门人数统计
export function getDataStatisticsApi() {
  return request({
    url:  `/Empment/dataStatistics/count`,
    method: 'get',
  });
}

export function resetList(list,date) {

  return request({
    url: `/Empment/dataStatistics/count/${list}/${date}`,

    method: 'post',
  });
}

export function getDataStatisticsApi2(date) {
  return request({
    url:  `/Empment/dataStatistics/count/his/${date}`,
    method: 'get',
  });
}
export function getEmpOpsApi(range) {

  return request({
    url: `/Empment/dataStatistics/operation/${range}`,

    method: 'get',
  });
}
export function getEmpnumByTimeApi(minTime,maxTime,deptId) {

  return request({
    url: `/Empment/dataStatistics/xi/${minTime}/${maxTime}/${deptId}`,

    method: 'get',
  });
}
export function getcountbygenderApi(){

  return request({
    url: `/Empment/dataStatistics/genderlist`,

    method: 'get',
  });
}


export function getEducationalLeveList(){

  return request({
    url: `/Empment/dataStatistics/educationalLeveList`,

    method: 'get',
  });
}

export function getRegionList(){

  return request({
    url: `/Empment/dataStatistics/regionList`,

    method: 'get',
  });
}

export function getPostList(){

  return request({
    url: `/Empment/dataStatistics/gangweiList`,

    method: 'get',
  });
}

export function getAgeList() {

  return request({
    url: `/Empment/dataStatistics/ageList`,

    method: 'get',
  });
}

